﻿using System;
using System.Collections;
using System.Text;

namespace MPMovieCatalog.Domain
{
    [Serializable()]
    public class ShareFile : NamedEntity
    {
        public ShareFile() { }

        public ShareFile(string name, string path)
        {
            Name = name;
            Path = path;
        }

        public ShareFile(long id, string name, string path)
        {
            Id = id;
            Name = name;
            Path = path;
        }

        public string Path { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            if (Path != string.Empty)
            {
                sb.Append(Path);
            }
            sb.Append(Name);
            return sb.ToString();
        }
    }
}
